home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000278_arthur.marsh@internode.on.net_Tue May 4 12:06:17 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Date: Tue, 04 May 2004 14:58:48 +0930
  2. From: Arthur Marsh <arthur.marsh@internode.on.net>
  3. Organization: what organisation
  4. User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7b) Gecko/20040421
  5. X-Accept-Language: en, en-us
  6. MIME-Version: 1.0
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: The Unknown C-Kermit.
  9. References: <6b1f50ac.0405031402.31a93918@posting.google.com>
  10. In-Reply-To: <6b1f50ac.0405031402.31a93918@posting.google.com>
  11. Content-Type: text/plain; charset=us-ascii; format=flowed
  12. Content-Transfer-Encoding: 7bit
  13. NNTP-Posting-Host: ppp953.adelaide.on.net.au
  14. Message-ID: <40972a12@duster.adelaide.on.net>
  15. X-Trace: duster.adelaide.on.net 1083648530 150.101.77.184 (4 May 2004 14:58:50 +0950)
  16. Lines: 59
  17. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!logbridge.uoregon.edu!pln-w!lotsanews.com!sjc-feed.news.verio.net!duster.adelaide.on.net!not-for-mail
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14997
  19.  
  20.  
  21.  
  22. Dat Nguyen wrote:
  23.  
  24. > If you are using C-Kermit to do some simple communication tasks
  25. > between two computers, you are under utilizing C-Kermit. Since the
  26. > release of version 8.0, C-Kermit is a versatile instrument that can be
  27. > used to do many things that you are unaware of.
  28. > Consider that Delphi and Visual Basic run only on Windows, Java won't
  29. > run on many platforms for years to come (i.e. Stratus VOS) and
  30. > Smalltalk exists only for a few OS. C-Kermit has been the "WRITE ONCE
  31. > RUN EVERYWHERE" since the 1980s.
  32. > Take one classic problem in operating system: the Dinning
  33. > Philosophers. The Dinning Philosophers problem can be stated as
  34. > follows:
  35. > "Five philosophers spend their lives thinking, eating, and sleeping.
  36. > The Philosophers sit around a table where there is a bowl of rice and
  37. > five chopsticks. Each philosopher compete for two chopsticks to eat."
  38. > To solve this problem, one needs supports from the running environment
  39. > like semaphore, timer, fork, multiprocessing, and concurrency.
  40. > C-Kermit does not provide all that, but you can create them and solve
  41. > the Dinning Philosophers problem in C-Kermit.
  42. > The whole thing is easier to do in OOP fashion where each philosopher
  43. > is presented by an object. These objects line up in a queue executed
  44. > in turn by a process object. Each philosopher object carries with
  45. > itself a softtimer that is timed when the object gets processed.
  46. > The philosopher objects compete for chopsticks which are binary
  47. > semaphore objects. The semaphores keep tracks of the philosophers
  48. > waiting for chopsticks to be available. Whenever the chopsticks are
  49. > released by eating philosopher objects, the semaphores send the
  50. > waiting philosopher objects to the process object queue.
  51. > This model of processing are applicable to a variety of complex
  52. > programming task where resources are competed, state of running
  53. > objects continously change. And since C-Kermit can communicate with
  54. > other computers, many useful administration tasks and communication
  55. > applications can be done comfortably.
  56. > For the solution of the Dinning Philosophers problem in C-Kermit, see:
  57. > http://www.columbia.edu/kermit/ckscripts.html#oops
  58.  
  59. Well done!
  60.  
  61. The correct URL for the dining philosphers script is:
  62.  
  63. ftp://kermit.columbia.edu/kermit/scripts/ckermit/dining-philosophers
  64.  
  65. (The present link omits the hyphen).
  66. > Dat Nguyen
  67.  
  68. Arthur.